package cn.bgs.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @program: smart_community
 * @description:
 * @author: Mr.Zhao
 * @create: 2022-06-14 19:39
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PortalVo implements Serializable {


    @ApiModelProperty(value = "小区中间表id")
    @TableId(value = "middle_id", type = IdType.AUTO)
    private Integer middleId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "小区id")
    private Integer communityId;

    @ApiModelProperty(value = "楼栋id")
    private Integer buildingId;

    @ApiModelProperty(value = "单元表id")
    private Integer cellId;

    @ApiModelProperty(value = "楼层表id")
    private Integer floorId;

    @ApiModelProperty(value = "房屋表id")
    private Integer portalId;

    @ApiModelProperty(value = "小区名称")
    private String communityName;

    @ApiModelProperty(value = "楼栋")
    private Integer howMany;

    @ApiModelProperty(value = "单元")
    private String cellNumber;

    @ApiModelProperty(value = "楼层")
    private String howFloor;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "类型(身份证、车辆、维修申请，社区活动)")
    private String type;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "与业主关系（本人、亲属、朋友、租户）")
    private String relationShip;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "文件路径")
    private String fileUrl;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标志（y是删除 n是未删除）")
    private String deleteFlag;

    @ApiModelProperty(value = "门户号")
    private String howPortal;

    @ApiModelProperty(value = "房屋状态（自住、闲置、出租、出借）")
    private String state;

    @ApiModelProperty(value = "默认房屋（是，否）")
    private String defaultState;

    @ApiModelProperty(value = "审核状态（成功、认证中、失败）")
    private String auditState;

}
